<template>
    <div class="navbar">
        <!-- <button @click="handleClick">展开/折叠侧边栏</button> -->
        <!-- 插槽方式 -->
        <slot></slot>
        <div>vue3的单文件navbar</div>
    </div>
</template>

<script>

export default {

    methods: {
        // handleClick() {
        //     this.$emit("toNavbarEvent")
        // }
    }
}

</script>

<style scoped>
.navbar {
    height: 50px;
}

div {
    background: grey;
}
</style>